process {
    withName: "SAMTOOLS_VIEW" {
        ext.args = params.samtools_view_args
    }

    withName: "SAMTOOLS_FLAGSTAT2" {
        ext.prefix = "test.filtered"
    }

    withName: "SAMTOOLS_FLAGSTAT3" {
        ext.prefix = "test.dedup"
    }
}
